// 导入组件
import Vue from "vue";
import Router from "vue-router";
// 登录
import login from "@/views/login";
// 首页
import index from "@/views/index";
/**
 * 基础菜单
 */
// 虚拟人列表
import creact from "@/views/creact/creact";
// 虚拟人交互模拟
import exchange from "@/views/exchange/exchange";
// 虚拟人交互分析
import InteractionAnalysis from "@/views/InteractionAnalysis/InteractionAnalysis";

// 交互记录
import InteractionRecords from "@/views/InteractionRecords/InteractionRecords";
// 交互详情
import InteractionRecordsDetails from "@/views/InteractionRecordsDetails/InteractionRecordsDetails";

//学术库内容审核
import Auditing from "@/views/Auditing/Auditing";
// 学术库问答训练
import train from "@/views/train/train";

// 用户管理
import user from "@/views/system/user";
// 角色管理
import Role from "@/views/system/Role";
// 日志管理
import log from "@/views/system/log";

//  首页概览
import homePage from "@/views/charts/homePage";



// 启用路由
Vue.use(Router);

// 导出路由
export default new Router({
  routes: [
    {
      path: "/",
      name: "",
      component: login,
      hidden: true,
      meta: {
        requireAuth: false,
      },
    },
    {
      path: "/login",
      name: "登录",
      component: login,
      hidden: true,
      meta: {
        requireAuth: false,
      },
    },
    {
      path: "/index",
      name: "首页",
      component: index,
      iconCls: "el-icon-tickets",
      children: [
        {
          path: "/homePage",
          name: "首页",
          component: homePage,
          meta: {
            requireAuth: true,
          },
        },
        {
          path: "/creact/creact",
          name: "虚拟人创建与定制",
          component: creact,
          meta: {
            requireAuth: true,
          },
        },
        {
          path: "/exchange/exchange",
          name: "虚拟人交互模拟",
          component:exchange,
          meta: {
            requireAuth: true,
          },
        },

        {
            path: "/InteractionRecords/InteractionRecords",
            name: "交互记录",
            component: InteractionRecords,
            meta: {
              requireAuth: true,
            },
        },
        {
            path: "/InteractionRecordsDetails/InteractionRecordsDetails",
            name: "交互详情",
            component: InteractionRecordsDetails,
            meta: {
              requireAuth: true,
            },
        },
        {
          path: "/InteractionAnalysis/InteractionAnalysis",
          name: "虚拟人交互分析",
          component: InteractionAnalysis,
          meta: {
            requireAuth: true,
          },
      },
        
        {
            path: "/Auditing/Auditing",
            name: "学术库内容审核",
            component: Auditing,
            meta: {
              requireAuth: true,
            },
        },
        {
            path: "/train/train",
            name: "保鲜效果监测",
            component: train,
            meta: {
              requireAuth: true,
            },
        },


        {
          path: "/system/user",
          name: "用户管理",
          component: user,
          meta: {
            requireAuth: true,
          },
        },
        {
          path: "/system/Role",
          name: "角色管理",
          component: Role,
          meta: {
            requireAuth: true,
          },
        },
        {
          path: "/system/log",
          name: "日志管理",
          component: log,
          meta: {
            requireAuth: true,
          },
        },
       
      ],
    },
  ],
});
